Base64 encoding is very common in e-mails. For emails such as Foxmail and outlook, the user agent performs SMTP verification when sending emails, that is, entering the username and password in base64 encoding format for verification, the body
Here is a string 123456 for example, its MD5 ciphertext value is: e10adc3949ba59abbe56e057f20f883eHere, 1.txt is the file that needs to be encrypted.First, the method of encrypting strings and files with Oppnssl MD5.1. Oppnssl MD5 method of
Basic one-way encryption algorithm:BASE64 strictly speaking, it belongs to the encoding format, not the encryption algorithmMD5 (Message Digest algorithm 5, Information Digest algorithm)SHA (Secure Hash algorithm, security hashing algorithm)HMAC
In this paper, we describe the method of Base64 encoding for utf-8 of Chinese strings by JS. Share to everyone for your reference, specific as follows:
String to encode: "Select username from user"
Using Java for encoding, Java programs:
OverviewBase64 can convert non-printable encoding into printable encoding for storage.For example, HTTP generally transmits text messages. If you want to transmit images, you must first encode the images into base64 messages for transmission, and
Use:
Java.net. urlencoder. encode (base64 encoding (encrypted string), stringcode) to encrypt parameters in the URL.
First, let's talk about encryption.
1. algorithm selection:
For the process of encrypting parameters in a URL, I do not
Using:
Java.net.URLEncoder.encode (BASE64 encoding (cryptographic strings), Stringcode) is used to encrypt the parameters in the URL.
let's start by saying how to encrypt.
one, the choice of algorithms:
For the process of encrypting a parameter
Window. Xfun = {"GetById": function getById (ID) {return document.getElementById (ID);},"Geturlparam": function (name) {var reg = new RegExp ("(^|&)" + name + "= ([^&]*) (&|$)"); Constructs a regular expression object that contains a target
The simple Java encryption algorithm is:
BASE64 strictly speaking, it belongs to the encoding format, not the encryption algorithm
MD5 (Message Digest algorithm 5, Information Digest algorithm)
SHA (Secure Hash algorithm, security
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.